package com.itheima.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;


//声明他是一个配置类
@Configuration
//扫描注解
@ComponentScan(value = "com.itheima",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                value = {Controller.class}
        ))
//properties文件扫描 不支持通配
@PropertySource("jdbc.properties")
//导入其他配置文件
@Import({JDBCConfig.class,MybatisConfig.class})
public class SpringConfig {

}
